//
//  UIImageView+NetWork.m
//  
//
//  Created by  on 15/11/9.
//  Copyright © 2015年 . All rights reserved.
//

#import "UIImageView+NetWork.h"

@implementation UIImageView (NetWork)

-(void)setImageWithURLStrAdd:(NSString*)urlStr replaceImage:(UIImage*)replaceImage{
    if (!replaceImage) {
        replaceImage = [UIImage imageNamed:@"home_image"];
    }
//    if ([SelfTools isEmpty:urlStr]&&replaceImage == nil) {
//        return;
//    }
    if (![urlStr isNotEmpty]) {
        [self setImage:replaceImage];
        return;
    }
    [self sd_setImageWithURL:[NSURL URLWithString:urlStr] placeholderImage:replaceImage];
}
@end
